<form class="layui-form search-form">
    <div class="layui-input-inline">
        <input class="layui-input" name="keywords" placeholder="标题关键字" type="text"/>
    </div>
   
    <div class="layui-input-inline">
        <input class="layui-input" name="register_time" placeholder="请选择发布时间" type="text" readonly="" id="test1"/>
    </div>
    <button class="layui-btn layui-btn-sm" lay-filter="searchform" lay-submit="">
        <i class="fa fa-search">
        </i>
        查询
    </button>
    <button class="layui-btn layui-btn-sm layui-plus" type="button">
        <i class="fa fa-plus">
        </i>
        添加记录
    </button>
</form>
<table class="layui-table data-table" lay-filter="data_table">
</table>
<script id="toolbar_normal" type="text/html">
    <a class="layui-btn layui-btn-xs" lay-event="edit">
        
        广告详情
    </a>

    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">
        <i class="fa fa-trash-o">
        </i>
        删除
    </a>
</script>
{load href="__module__/before/ad_buy/index.js" /}
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;
      
        //执行一个laydate实例
        laydate.render({
            elem: '#test1' //指定元素
        });
    });
</script>